import Vue from "vue";
// 用于解决移动端点击有 300ms 延迟的问题
import fastClick from "fastclick";
import vueAwesomeSwiper from "vue-awesome-swiper";
// 由于引入的版本不同 需要先实例化注册 vue-awesome-swiper 中的 Navigation和Pagination 属性
import Swiper2, { Navigation, Pagination } from "swiper";
import App from "./App.vue";
import router from "./router";
import store from "./store";

// 用于初始化样页面样式
import "./assets/style/reset.css";
// 用于解决移动端边框 1px 的问题
import "./assets/style/border.css";
// 图标样式
import "./assets/style/iconfont.css";
// 引入轮播图样式
import "swiper/swiper-bundle.css";

Vue.config.productionTip = false;
fastClick.attach(document.body);
Vue.use(vueAwesomeSwiper);
// 解决小圆点不显示问题
Swiper2.use([Navigation, Pagination]);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
